libxlutil: avoid almost-undefined behavior
authorJan Beulich <jbeulich@suse.com>
Wed, 27 Jan 2021 16:08:14 +0000 (17:08 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 27 Jan 2021 16:08:14 +0000 (17:08 +0100)
commit56d599351879eeb7d2212ebb788d87ddb26f9fca
treeb52f51c2dd2fafb1ce93b8acb1062c85c83aa47a
parent66a816b45d04698a4a9e0695f570f3965b9744cc
libxlutil: avoid almost-undefined behavior

While only value computations of an object are disallowed in the
presence of another unsequenced side effect, at least gcc 4.3 looks to
extend this to taking the object's address. The resulting warning causes
the build to fail, because of -Werror.

While there also correct an adjacent comment.

Fixes: bdc0799fe26a ("libxlu: introduce xlu_pci_parse_spec_string()")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libs/util/libxlu_pci.c